﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace E2_WEBSITE.Code.CD_DVD
{
    public class CDController
    {
        public List<string> GetListSpeedByManufactureName(string sManufacture)
        {
            CDDataAccess cda = new CDDataAccess();
            return cda.GetListSpeedByManufactureName(sManufacture);
        }

        public List<string> GetListProductNameByManuAndSpeed(string sManufacture,string sSpeed)
        {
            CDDataAccess cda = new CDDataAccess();
            return cda.GetProductByManufactureAndSpeed(sManufacture, sSpeed);
        }

        public int GetCDIDByManuAndSpeedAndName(string sManufacture,string sSpeed,string sProductName)
        {
            CDDataAccess cda = new CDDataAccess();
            return cda.GetProductIDByManuAndSpeedAndProName(sManufacture, sSpeed, sProductName);
        }
    }
}
